<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script src="../js/axios.min.js" type="text/javascript" charset="utf-8"></script>
		
		<script type="text/javascript">
			/* 定义一个表单对象 */
			let params = new URLSearchParams();
			/* 给表单对象封装数据 */
			params.append("name","lisi");
			params.append("gender","女");
			/* 携带数据发送请求 */
			axios.post("http://localhost:8081/insertEmpNew",params)
			.then(function(result){
				console.log(result);
			})
			.catch(function(error){
				console.log(error);
			})
		</script>
		
	</body>
</html>
